﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string a, b;
            string s;
            Console.WriteLine("Put in the first number");
            a = Console.ReadLine();
            Console.WriteLine("Put in the second number");
            b = Console.ReadLine();
            Console.WriteLine("Put in the operator");
            s = Console.ReadLine();
            if(s == "+")
                Console.WriteLine(a + "+" + b + "=" + (System.Convert.ToDouble(a) + System.Convert.ToDouble(b)));
            else if(s == "-")
                Console.WriteLine(a + "-" + b + "=" + (System.Convert.ToDouble(a) - System.Convert.ToDouble(b)));
            else if(s == "*")
                Console.WriteLine(a + "*" + b + "=" + (System.Convert.ToDouble(a) * System.Convert.ToDouble(b)));
            else if (s == "/" && b != "0")
                Console.WriteLine(a + "*" + b + "=" + (System.Convert.ToDouble(a) / System.Convert.ToDouble(b)));
            else
                Console.WriteLine("Invalid calculation");
        }
    }
}
